//
//  MVDefines.h
//  Micro_Vision
//
//  Created by 张 武剑 on 13-7-3.
//  Copyright (c) 2013年 Z_Jerry. All rights reserved.
//

#ifndef MVDefinesAddtion_h
#define MVDefinesAddtion_h

#import "FHYModel.h"
#import <JSONKit.h>
#import <AFNetworking.h>
#import "AFAppDotNetAPIClient.h"
#import <UIButton+WebCache.h>
#import "UIImageView+WebCache.h"
#import "FHYAppDelegate.h"
#import "MTLModel.h"

//打开测试接口视图
//#define NEED_TO_SHOW_APIDEBUGVIEW

#define CURRENT_VERSION @"1.1.0"
#define MVSidePanel_SharedSingleton [MVSidePanelController sharedSingleton]
#define MSVDataModel_SharedSingleton [MSVDataModel sharedSingleton]

//下载地址
#define DOWNLOAD_ADDRESS @"https://itunes.apple.com/us/app/wei-shi/id684704798?ls=1&mt=8"
//请求地址
#define AFAppDotNetAPIBaseURLString @"http://www.samsungsmartschool.com:7008/exam"
#define AFLogInURLString @"http://www.samsungsmartschool.com:7008/exam/"
//图片请求地址
#define AFAppDotaNetPicUrlString @"http://tvfan.cn"

#define AFNClient [FHYModel sharedFHYModel].AFNetWorkingClient

#define TESTBUG
#ifdef TESTBUG
#   define DLog(fmt, ...) {NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);}
#   define ELog(err) {if(err) NSLog(@"%@", err)}
#else
#   define DLog(...)
#   define ELog(err)
#endif

#define CLEAR_COLOR  [UIColor clearColor]
#define BLUE_COLOR [UIColor colorWithRed:46/255.0f green:189/255.0f blue:255/255.0f alpha:1.0f]
#define SMALL_TEXT_COLOR [UIColor colorWithRed:153/255.0f green:153/255.0f blue:153/255.0f alpha:1.0f]
#define MIDDLE_TEXT_COLOR [UIColor colorWithRed:63/255.0f green:63/255.0f blue:63/255.0f alpha:1.0f]
#define BACKGROUND_COLOR [UIColor colorWithRed:244/255.0f green:244/255.0f blue:244/255.0f alpha:1.0f]
#define COLOR(x,y,z) [UIColor colorWithRed:x/255.0f green:y/255.0f blue:z/255.0f alpha:1.0f]
#define BRIGHT_COLOR [UIColor colorWithRed:79/255.0f green:159/255.0f blue:43/255.0f alpha:1.0f]
#define DARK_COLOR [UIColor colorWithRed:157/255.0f green:157/255.0f blue:157/255.0f alpha:1.0f]
#define COMMON_COLOR [UIColor colorWithRed:60/255.0f green:60/255.0f blue:60/255.0f alpha:1.0f]

#define BLACK_COLOR [UIColor blackColor]
#define WHITE_COLOR [UIColor whiteColor]
#define CLEAR_COLOR [UIColor clearColor]

#define NAV_TITLE [UIColor colorWithRed:112/255.0 green:115/255.0 blue:117/255.0 alpha:1.0]

//#ifndef SCREENWIDTH
#define SCREENWIDTH [UIScreen mainScreen].bounds.size.width
//#endif

#define RotateMark 0

#define Synchronous NO
//同步
#define BackGroundColor [UIColor colorWithRed:232/255.0f green:238/255.0f blue:24/255.0f alpha:1]

#ifndef SCREENHEIGHT
#define SCREENHEIGHT [UIScreen mainScreen].bounds.size.height
#endif

#define VIEWHEIGHT_Factor ((SCREENHEIGHT- 20)/460.0f)

#define VIEWHEIGHT_Diff_value (SCREENHEIGHT > 480 ? ((568 - 460)/2):(0))

#define iOS7StateBarHeight (([[[UIDevice currentDevice]systemVersion]intValue]>=7.0)?(20):(0))
#define IsIOS7OrAbove ([[[UIDevice currentDevice]systemVersion]intValue]>=7.0)

//sex
#define MALE 1
#define FEMALE 0

#define WEIBOCOUNT @"10"

#define OFFICAL 1
#define PERSONAL 0

#endif



